import {ADD_COUNTER, ADDTOCART} from './mutains-types'

export default{
  [ADD_COUNTER](state, payload){
    payload.count++;
  },
  [ADDTOCART](state, payload){
    payload.checked = true
    state.cartList.push(payload);
  }
}